from fpdf import FPDF

pdf = FPDF()
# imagelist is the list with all image filenames

imagelist = []
for i in range(1,6):
    imagelist.append(str(i)+'.jpg')
for image in imagelist:
    pdf.add_page()
    print(pdf.r_margin)
    pdf.image(image,x=3,y=3,
              w=pdf.epw+10)
    
pdf.output("yourfile.pdf", "F")